<h1>Color</h1>

<p>The Color data structure supports the RGB colour space with an optional alpha 
channel which is used to specify the transparency of an object. A Color is 
encoded in 32 bits with 8 bits per colour channel.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top">red</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>The red channel of the colour, with values in the range 0..255.</td>
</tr>

<tr>
<td nowrap valign="top">green</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>The green channel of the colour, with values in the range 0..255.</td>
</tr>

<tr>
<td nowrap valign="top">blue</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>The blue channel of the colour, with values in the range 0..255.</td>
</tr>

<tr>
<td nowrap valign="top">alpha</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>Optional. The alpha channel of the colour, with values in the range 0..255.</td>
</tr>

</table>

<p>Whether a colour contains transparency information is determined by the 
context created by the object that contains the colour. For example colours 
within the DefineShape and DefineShape2 instructions do not contain alpha channel 
information while those in an DefineShape3 instruction do. The alpha channel is 
ignored if not required within the object the colour is defined for. As of 
Version 5 of the Macromedia Flash (SWF) File Format Specification only the 
PlaceObject2, DefineText2 and DefineShape3 instructions use colours containing 
an alpha channel.</p>

<h2>History</h2>

<p>Color represents the colour data types, RGB and RGBA in the Macromedia 
Flash (SWF) File Format Specification. The colour data structure was available 
was introduced in Flash 1 and transparent colours were introduced in Flash 3.</p>
